package com.wanghua.mall.auth.openfeign;

import com.wanghua.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author wanghua
 * @create 2021-09-05 16:13
 */
@FeignClient("mall-thirdparty")
public interface SmsClient {
    //发送短信验证码
    @PostMapping("/thirdparty/sms/sendMessage")
    R sendMessage(@RequestParam("phone") String phone, @RequestParam("code") String code);
}
